package xyz.yuanjilu.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import xyz.yuanjilu.dao.PushDao;
import xyz.yuanjilu.entity.PushEntity;
import xyz.yuanjilu.service.PushService;



@Service("pushService")
public class PushServiceImpl implements PushService {
	@Autowired
	private PushDao pushDao;
	
	@Override
	public PushEntity queryObject(Long id){
		return pushDao.queryObject(id);
	}
	
	@Override
	public List<PushEntity> queryList(Map<String, Object> map){
		return pushDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return pushDao.queryTotal(map);
	}
	
	@Override
	public void save(PushEntity push){
		pushDao.save(push);
	}
	
	@Override
	public void update(PushEntity push){
		pushDao.update(push);
	}
	
	@Override
	public void delete(Long id){
		pushDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		pushDao.deleteBatch(ids);
	}

	@Override
	public List reportList(Map<String, Object> map) {
		return pushDao.reportList(map);
	}

	@Override
	public int reportTotal(Map<String, Object> map) {
		return pushDao.reportTotal(map);
	}
	
}
